home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
music
/
pcmusic.arj
/
DEVELOP.DOC
< prev
next >
Wrap
Text File
|
1993-09-21
|
3KB
|
85 lines
DEVELOP.DOC Page 1 of 2
SOUND DRIVER PROGRAM
This program is written in assembler language for use by software
developers. I searched high and low for some guidance on how to
provide sound for my programs. Each book I bought gave me a little
piece. Several books gave me programs to play their sounds, but,
none really explained the method. They kept all that good stuff
hidden. I include all the theory along with diagrams and annotated
routines that I have developed to help you make use of this great
enhancement for your programs.
I have three (3) levels of marketing for my SOUND DRIVER:
1. ($7.95) The package I call PC MUSIC MAKER. You can type in
songs and/or sound effects. Then save, load, edit and play
them. it is great fun, but it doesn't help you to put them
into your programs. However, I have included a small execution
module on this disk called PCREADY.EXE. To use this module:
A. Install PCMM on your hard disk in directory PCMM.
B. Modify AUTOEXEC.BAT file to include the following:
CD\PCMM
PCREADY
C. When you turn on your system, you will be notified by
the AMBULANCE sound that your system is ready to go.
D. Make a phone call while your system is 'booting'. When
you hear the PCREADY sound you can hang up.
DEVELOP.DOC Page 2 of 2
2. ($14.95) The SOUND DRIVER in object form that can be LINKED
to your program. There are two rountines in the SOUND DRIVER.
A. PURGER strips all non-sound commands from the input
buffer and stores only the sound commands in SBuffer.
B. SOUNDDVR is the routine that controls the PC speaker.
from commands in the SBuffer.
C. Calling sequences will be provided with the package.
3. ($29.95) The SOUND DRIVER in annotated assembler form that can
be modified, assembled and linked with any of your programs you
desire. You may NOT use it to market anything similar to my
product PC MUSIC MAKER.
In PC MUSIC MAKER I put hooks in the SOUNDDVR to flash the
AMBULANCE light from blue to red. I also put hooks in PURGER
to strip the title from the input buffer and save it for display
while the tune was playing.
You may also want to add sound commands. For instance, if you
want to make your PC 'TALK', the frequency change must be made
very quickly. This would require a change to the SPEAKER routine
of SOUNDDVR.
I have made a small change to my personal SOUNDDVR to change the
frequency by a designated amount (Znnn). This way I can make a
siren sound or a train whistle with a doppler effect.
The possibilities are endless once you know how the PC speaker
is controlled.